home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.20020314-20021006
/
000123_fdc@columbia.edu_Wed Jun 5 10:50:23 EDT 2002.msg
< prev
next >
Wrap
Text File
|
2020-01-01
|
2KB
|
50 lines
Article: 13420 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!news.columbia.edu!news-not-for-mail
From: fdc@columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: kermit file
Date: 5 Jun 2002 10:50:19 -0400
Organization: Columbia University
Lines: 33
Message-ID: <adl8fb$lak$1@watsol.cc.columbia.edu>
References: <fd9f03a6.0206030803.6475f94c@posting.google.com> <fd9f03a6.0206032329.ef1732a@posting.google.com> <adihlk$lvh$1@watsol.cc.columbia.edu> <fd9f03a6.0206050353.2dea961c@posting.google.com>
NNTP-Posting-Host: watsol.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1023288620 26927 128.59.39.139 (5 Jun 2002 14:50:20 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 5 Jun 2002 14:50:20 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:13420
In article <fd9f03a6.0206050353.2dea961c@posting.google.com>,
david <david.neau@dial.oleane.com> wrote:
: ...
: > Perhaps if you state what you are trying to accomplish, we can suggest a
: > method.
:
: I just want to use kermit to make several RTC connections to cisco
: routeur and past with a perl script some command and find the answer
: in the kermit.log file.
:
: So i just want that kermit script ( the connection ) run at the same
: time that my perl script..
:
Perhaps you are approaching the problem in the wrong way. You don't have
to script Kermit with Perl. You can script Kermit with Kermit. That's what
it is designed for; it is not designed to be scripted by an external scripting
agent like Perl, Python, etc.
You can find dozens of examples of how to do this in the C-Kermit script
library:
http://www.columbia.edu/kermit/ckscripts.html
I still don't know exactly what you want to do, but I think it is: make a
connection to a router, give some commands, and log the results to a file.
This is very simple. You can use Kermit to make any kind of connection to
the router: direct serial, dialed, Telnet, secure Telnet, SSH, etc. Then,
once connected, you tell Kermit to "log session xxx" where xxx is the name
of the logfile you want to create. Then you use INPUT, OUTPUT, and IF
SUCCESS commands to carry on the dialog. See the examples in the script
library. Or read the manual. Have your angry boss buy you a copy.
- Frank